package com.hds.modules.app.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.hds.modules.app.entity.ActivationCodeEntity;
import com.hds.modules.sys.entity.dto.ActivationCodeDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author guonan
 * @Email guonan@yewcn.com
 * @Description
 * @Date 2018/6/11 10:25
 */
@Mapper
public interface ActivationCodeDao extends BaseMapper<ActivationCodeEntity> {

    List<ActivationCodeEntity> queryByCompanyId(Integer companyId);

    String queryMaxCardNo(Integer companyId);

    ActivationCodeEntity queryByCode(String code);

    Integer queryMaxBatchByCompanyId(Integer companyId);

}
